import { Response, } from "@/types/common";
import { LoginInfo } from "@/types/user";

import request from "../request";

/**获取一级分类 */
export const login = (username: string, password: string | number): Promise<Response<LoginInfo>> => request({ url: '/login', data: { username, password } });